<template>
  <div id="rightist-component">
    <div class="item" v-for="(item, index) in right_list" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <span>{{ item.title }}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RightList",
  props: {
    right_list: {
      type: Array,
    },
  },
  mounted() {},
}
</script>

<style lang="less" scoped>
#rightist-component {
  display: flex;
  flex-wrap: wrap;
  .item {
    width: 67px;
    height: 83px;
    margin-right: 5px;
    margin-top: 5px;
    text-align: center;
    img {
      display: block;
      width: 53px;
      height: 53px;
      margin: auto;
    }
    span {
      display: block;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      margin-top: 12px;
      font-size: 12px;
    }
  }
  .item:nth-of-type(3n) {
    margin-right: 0px;
  }
}
</style>
